projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74bd552
)
freeing of non babl allocated memory is fatal.
author
Øyvind Kolås
<ok@src.gnome.org>
Tue, 30 Aug 2005 12:30:41 +0000
(12:30 +0000)
committer
Øyvind Kolås
<ok@src.gnome.org>
Tue, 30 Aug 2005 12:30:41 +0000
(12:30 +0000)
ChangeLog
patch
|
blob
|
history
babl/babl-memory.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index c9250cbea94aa9553bbb816069fc8de64802a36e..88365498b5d3e308f673c853edbff0618ee43048 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,8
@@
+2005-08-30 Øyvind Kolås <pippin@gimp.org>
+
+ * babl/babl-memory.c: (babl_free): freeing of non babl allocated
+ memory is fatal.
+
2005-08-29 Øyvind Kolås <pippin@gimp.org>
* tests/types.c: added test that tests the symmetry of reference
diff --git
a/babl/babl-memory.c
b/babl/babl-memory.c
index b4fa769fae955d7e26e5da394cd02bc5e72938b6..811414ec27cb7b7d3fc761f0f815a5a159f082c8 100644
(file)
--- a/
babl/babl-memory.c
+++ b/
babl/babl-memory.c
@@
-138,7
+138,8
@@
babl_free (void *ptr)
{
if (!ptr)
return;
- assert(IS_BAI(ptr));
+ if(!IS_BAI(ptr))
+ babl_fatal ("memory not allocated by babl allocator");
functions_sanity ();
free_f (BAI(ptr));
frees++;